package cn.cupk.logsystem.mapper;

import cn.cupk.logsystem.pojo.Administrator;
import org.apache.ibatis.annotations.*;

@Mapper
public interface AdministratorMapper {
    @Insert("INSERT INTO administrators (username, password) VALUES (#{username}, #{password})")
    void insertAdministrator(String username, String password);

    @Select("SELECT * FROM administrators WHERE username = #{username}")
    Administrator selectAdministratorByUsername(String username);
}